/**
 * Author:MangoDai
 *
 * Date:${Date}
 *
 * Description:
 *
**/
#include <iostream>
using namespace std;
#include <stdlib.h>
#include <string.h>
#include <cstdio>
int char2int(char i){
	return i - '0';
}
int reverse(int i){
	int sum= 0;
	while(1){
		int j = i %10;
		sum *= 10 ;
		sum += j;
		i = i/10;
		if (i == 0) return sum;
	}
}
int main(){
	char num[10][10]={
		"ling", "yi", "er", "san", "si", "wu", "liu", "qi", "ba", "jiu"
	};
	char str[1024];
	cin >> str;
	int len = strlen(str);
	if (len < 2){
		int j = char2int(str[0]);
		cout << num[j];
		return 0;
	}
	int sum = 0;
	for (int i = 0 ; i < len ; i++){
		sum += char2int(str[i]);
	}
	sum = reverse(sum);
//	cout << sum;
	while(1){
	  int f = sum %10;
	  cout << num[f];
	  sum = sum /10;
	  if (sum==0){
	  	 break;	
	  }
	  else {
	     cout << " ";
	  }
	}
	
	return 0;
}

